﻿using System;
using System.Configuration;
namespace CarBooker.Infrastructure.RepositoryFramework.Configuration
{
    public sealed class RepositoryMappingElement: ConfigurationElement
    {
        [ConfigurationProperty(RepositoryMappingConstants.InterfaceShortTypeNameAttributeName, 
            IsKey=true, 
            IsRequired=true)]
        public string InterfaceShortTypeName
        {
            get 
            {
                return (string)this[RepositoryMappingConstants.InterfaceShortTypeNameAttributeName];
            }
            set 
            {
                this[RepositoryMappingConstants.InterfaceShortTypeNameAttributeName] = value;
            }
        }
        [ConfigurationProperty(RepositoryMappingConstants.RepositoryFullTypeNameAttributeName, 
            IsKey=true, 
            IsRequired=true)]
        public string RepositoryFullTypeName
        {
            get
            {
                return (string)this[RepositoryMappingConstants.RepositoryFullTypeNameAttributeName];
            }
            set
            {
                this[RepositoryMappingConstants.RepositoryFullTypeNameAttributeName] = value;
            }
        }
    }
}
